import request from '@/utils/request'

// 查询生成表数据
export function dataOverview(params) {
  return request({
    url: '/homePage/data/overview',
    method: 'get',
    params
  })
}

// 工单统计
export function dataOrder(params) {
  return request({
    url: '/homePage/workOrder/statistics',
    method: 'get',
    params
  })
}

// 项目列表
export function projectData(params) {
  return request({
    url: '/homePage/project/list',
    method: 'get',
    params
  })
}

// 系统列表
export function systemData(params) {
  return request({
    url: '/homePage/system/statistics',
    method: 'get',
    params
  })
}

// 设备列表
export function deviceData(params) {
  return request({
    url: '/homePage/device/statistics',
    method: 'get',
    params
  })
}

// 机构 委托单位 项目关系树
export function treeData(params) {
  return request({
    url: '/homePage/relationship/tree',
    method: 'get',
    params
  })
}